﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ChangePassword.aspx.cs" Inherits="ChangePassword" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title><%=Session["AdminPortalTitle"]%> / Change password</title>
    <link href="<%=Session["ActiveTheme"]%>/default.css" rel="stylesheet" type="text/css" />
    
</head>
<body>
<script type="text/javascript">
    function ClientDoChangePasword() {
        OldPassword = document.getElementById("txtOldPassword").value;
        password = document.getElementById("txtPassword").value;
        rePassword = document.getElementById("txtRePassword").value;
        RetValue = ChangePassword.ServerSideChangePassword(OldPassword, password, rePassword).value;
        if (RetValue.indexOf("ERROR") != -1) {
            alert(RetValue);
            return;
        }
        UserBackendAspx = ChangePassword.GetUserBackendAspx().value;
        window.open(UserBackendAspx, "_self");
    }
</script>
    <form id="frmLogin" runat="server">
        <div class="cssDivLoginMain" align=center>
        <div class=cssDivLogin><asp:PlaceHolder ID="placeHolderContent" runat="server"></asp:PlaceHolder></div>
    </div>
    </form>
</body>
</html>
